package com.xinhe.web.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tb_weixin_trade")
@ApiModel(description = "微信交易详情")
public class WeixinTrade {
    @Id
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("微信配置标识")
    private Long configId;
    @ApiModelProperty("用户标识")
    private Long userId;
    @ApiModelProperty("交易类型, 1支付、2退款")
    private Integer tradeType;
    @ApiModelProperty("数据类型")
    private String dataType;
    @ApiModelProperty("数据标识")
    private Long dataId;
    @ApiModelProperty("费用")
    private BigDecimal fee;
    @ApiModelProperty("交易状态, 1交易中、2交易完成")
    private Integer tradeStatus;
    @ApiModelProperty("微信交易标识")
    private String weixinTradeId;
    @ApiModelProperty("请求交易标识")
    private Long requestTradeId;
    @ApiModelProperty("请求扩展参数")
    private String extendParams;
    @ApiModelProperty("请求信息")
    private String requestInfo;
    @ApiModelProperty("响应信息")
    private String responseInfo;
    @ApiModelProperty("通知信息")
    private String notifyInfo;
}
